package com.kl.drs.dao;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.kl.drs.bean.bo.DrsAsynchTaskBO;
import com.kl.drs.mapper.drs.DrsAsynchTaskMapper;

@Service("drsAsynchTaskDAO")
public class DrsAsynchTaskDAO {
	@Autowired
	private DrsAsynchTaskMapper drsAsynchTaskMapper;

	/**
	 * 新增异步任务
	 * @param drsAsynchTask
	 * @return
	 */
	public int addDrsAsynchTask(DrsAsynchTaskBO drsAsynchTask) {
		return drsAsynchTaskMapper.addDrsAsynchTask(drsAsynchTask);
	}
	/**
	 * 查询列表信息 
	 * @param condMap
	 * @return
	 */
	public List<DrsAsynchTaskBO> getAsynchTaskList(Map<String, Object> condMap) {
		return drsAsynchTaskMapper.getAsynchTaskList(condMap);
	}
	/**
	 * 更新时间状态
	 */
	public int updateTaskStatus(Map<String, Object> condMap) {

		return drsAsynchTaskMapper.updateTaskStatus(condMap);
	}
}
